Deflection of beam Macaulay's Method